package com.test1230am;

public class Test04 {
    public static void main(String[] args) {
        // (4)求1+2+3+4...+10和
        int sum =0;
        for(int i=1;i<=10;i++){
            sum+=i;
        }
        System.out.println("和为："+sum);
    }
}
